<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp"/>
<%@ include file="/WEB-INF/jsp/common/_includes.jsp" %>
<div class="ui grid">
    <div class="row">
        <div class="column">
            <div class="ui two column grid">
                <div class="three wide column">
                    <jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
                        <jsp:param name="index" value="502"/>
                    </jsp:include>
                </div>
                <div id="container" class="thirteen wide column">
                    <ol class="breadcrumb">
                        <li><a href="/">后台管理</a></li>
                        <li><a href="/links">导航管理</a></li>
                        <li class="active">友情链接导航管理</li>
					</ol>
                    <ul class="nav nav-pills" role="tablist">
                        <li role="presentation" class="active"><a href="/links/add">录入链接</a></li>
                    </ul>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>名称</th>
                            <th>地址</th>
                            <th>是否新窗口打开</th>
                            <th>创建人</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${paginate.pageList}" var="links">
                            <tr>
                                <td><a href="/links/${links.id}/details" target="_blank">${links.id}</a></td>
                                <td>${links.name}</td>
                                <td>${links.link}</td>
                                <td>${links.tank == 1 ? '是' : '否'}</td>
                                <td>
                                    <a target="_blank" href="/managers/details/${links.creator}">${links.creatorName}</a>
                                </td>
                                <td><fmt:formatDate value="${links.createdTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                                <td>
                                    <a href="/links/${links.id}/edit" target="_blank">编辑</a>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <div class="page-info clearfix">
                         <jsp:include page="/WEB-INF/jsp/common/_page.jsp"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"></jsp:include>
